/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.posplus.losspreventiondataimporter.service;

import com.posplus.strack.HistDAOFactory;
import com.posplus.strack.POSDAOFactory;
import com.posplus.strack.dao.RegisterTransDAO;
import com.posplus.strack.mapping.RegisterTrans;
import java.util.Calendar;
import java.util.List;

/**
 *
 * @author scottw
 */
public class RegisterTransService {
    
    private RegisterTransDAO transDAO;
    
    public RegisterTransService(RegisterTransDAO transDAO){
        this.transDAO = transDAO;
    }
    
    public RegisterTransService(HistDAOFactory svtDAOFactory){
        this.transDAO = svtDAOFactory.getRegisterTransDAO();
    }
    
    public List<RegisterTrans> getBetweenDates(Calendar start, Calendar end){
        List<RegisterTrans> result;
        
        result = transDAO.getAllBetweenDate(start, end);        
        
        return result;
    }
}
